package com.easytopit.demo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.easytopit.demo.dao.UserMapper;
import com.easytopit.demo.domain.User;
import com.easytopit.demo.service.UserService;

@Service
public class UserServiceImpl implements UserService{
	
	@Autowired
	private UserMapper userMapper;
	
	@Override
	public String check(String name) {
		return userMapper.check(name);
	}
	
	@Override
	public User user(String name, String passwd) {
		return userMapper.user(name, passwd);
	}

	@Override
	public void reg(String name, String passwd,String surePasswd) {
		userMapper.reg(name, passwd);
	}

	@Override
	public String login(String name) {
		return userMapper.login(name);
	}
	
	@Override
	public void updatePasswd(String name, String passwd) {
		userMapper.updatePasswd(name, passwd);
	}

	@Override
	public void setFace(String face,String name) {
		userMapper.setFace(face,name);
	}
	
	@Override
	public void setEmail(String email, String name) {
		userMapper.setEmail(email, name);
	}
}